package com.qf.enums;

import lombok.Getter;

@Getter
public enum  ErrorMsgEnums {
    USERNAME_UN_USABLE(20,"该用户名不可用！！"),
    USER_REGISTER_ERROR(21,"用户注册失败！！"),
    PACKAGE_PARAMETERS_ERROR(10,"请求参数不合理！！"),
    LOGIN_USERNAME_ERROR(31,"用户名不存在！！"),
    LOGIN_PASSWORD_ERROR(32,"用户名或密码错误！！"),
    UPLOAD_SIZE_ERROR(51,"上传文件过大！上传文件不能超过5MB"),
    UPLOAD_TYPE_ERROR(52,"上传文件格式错误！请上传图片"),
    UPLOAD_DAMAGE(53,"上传文件已损坏！"),
    ITEM_ADD_ERROR(61,"添加商品信息失败！"),
    ITEM_DELETE_ERROR(62,"删除商品信息失败！"),
    ITEM_UPDATE_ERROR(63,"修改商品信息失败！"),
    ITEM_SELECT_ERROR(64,"查询商品信息失败！")
    ;

    private Integer code;

    private String msg;


    ErrorMsgEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
